package com.zbkj.crmeb.store.model;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 批采单未核实详情表
 * </p>
 *
 * @author wuzp
 * @since 2022-05-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("eb_store_order_info_picking")
@ApiModel(value="StoreOrderInfoPicking对象", description="批采单未核实详情表")
public class StoreOrderInfoPicking extends Model<StoreOrderInfoPicking> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "订单id")
    private Integer orderId;

    @ApiModelProperty(value = "商品ID")
    private Integer productId;

    @ApiModelProperty(value = "购买东西的详细信息")
    private String info;

    @ApiModelProperty(value = "唯一id")
    @TableField(value = "`unique`")
    private String unique;

    @ApiModelProperty(value = "实际支付金额")
    private BigDecimal payPrice;

    @ApiModelProperty(value = "是否删除")
    private Integer isDel;

    @ApiModelProperty(value = "数量")
    private Integer num;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @ApiModelProperty(value = "商品订单号")
    private String orderInfoId;

    @ApiModelProperty(value = "供应商id")
    private Integer suppliersId;

    @ApiModelProperty(value = "推送地址")
    private String deliveryAddress;

    @ApiModelProperty(value = "是否异常订单（0正常 1异常）")
    private Integer abnormal;

    @ApiModelProperty(value = "下单汇率")
    private BigDecimal exchangeRate;

    @ApiModelProperty(value = "头程物流费用")
    private BigDecimal firstPrice;

    @ApiModelProperty(value = "终端物流费用")
    private BigDecimal secondPrice;

    @ApiModelProperty(value = "税费")
    private BigDecimal taxPrice;

    @ApiModelProperty(value = "是否自建：1：自建；其它（包括null）：云仓")
    private Integer isEurope;

    @ApiModelProperty(value = "一级代理商利润")
    private BigDecimal firstAgentProfit;

    @ApiModelProperty(value = "二级代理商利润")
    private BigDecimal secondAgentProfit;

    @ApiModelProperty(value = "是否自建全新商品1全新，0二手")
    private Integer newProductFlag;

    @ApiModelProperty(value = "云仓商品自主发货（0平台发货 1自主发货）")
    private Integer autonomous;

    @ApiModelProperty(value = "关键字")
    private String keyword;

    @ApiModelProperty(value = "商品名称")
    private String storeName;

    @ApiModelProperty(value = "分类id")
    private Integer cateId;

    @ApiModelProperty(value = "批采商品id")
    private Integer pickingProductId;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
